const userRoutes = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/Login.vue'),
        meta: {
            title: "登录"
        }
    },
    {
        path: '/register',
        name: 'Register',
        component: () => import('@/views/Register.vue'),
        meta: {
            title: "注册"
        }
    },
    {
        path: '/profile',
        name: 'Profile',
        meta: {
            title: "用户详情",
            auth: true,
        },
        component: () => import('@/views/Profile.vue'),
    },
    {
        path: '/article/create',
        name: 'ArticleCreate',
        meta: {
            title: "写文章",
            auth: true,
        },
        component: () => import('@/views/ArticleCreate.vue'),
    },
    {
        path: '/myarticles',
        name: 'MyArticles',
        meta: {
            title: "管理文章",
            auth: true,
        },
        component: () => import('@/views/MyArticles.vue'),
    },
];

export default userRoutes;
